package com.ahccc.codegenerator.backend.mybatis;
import com.baomidou.mybatisplus.core.toolkit.StringPool;

import java.nio.charset.StandardCharsets;

public interface Const {

    String POM_PATH = "pom_path";
    String APPLICATION_YML_PATH = "application_yml_path";
    String APPLICATION_PATH = "application_path";
    String SERVLET_INITIALIZER_PATH = "servlet_initializer_path";
    String APPLICATION_TEST_PATH = "application_tests_path";

    String JAVA_TMPDIR = "java.io.tmpdir";
    String UTF8 = StandardCharsets.UTF_8.name();
    String UNDERLINE = "_";

    String JAVA_SUFFIX = StringPool.DOT_JAVA;


    /**
     * mybatis后端模板
     */
    String MYBATIS_TEMPLATE_PARENT_POM = "/templates/backend/mybatis/parent-pom.xml.ftl";
    String MYBATIS_TEMPLATE_POM = "/templates/backend/mybatis/pom.xml.ftl";
    String MYBATIS_TEMPLATE_APPLICATION_YML = "/templates/backend/mybatis/application.yml.ftl";
    String MYBATIS_TEMPLATE_APPLICATION = "/templates/backend/mybatis/Application.java.ftl";
    String MYBATIS_TEMPLATE_SERVLET_INITIALIZER = "/templates/backend/mybatis/ServletInitializer.java.ftl";
    String MYBATIS_TEMPLATE_APPLICATION_TEST = "/templates/backend/mybatis/ApplicationTests.java.ftl";

    /**
     * vue + element-ui 前端模板
     */
    String ELEM_TEMPLATE_POM = "/templates/frontend/elem/pom.xml.ftl";
    String ELEM_TEMPLATE_APPLICATION = "/templates/frontend/elem/Application.java.ftl";
    String ELEM_TEMPLATE_APPLICATION_YML = "/templates/frontend/elem/application.yml.ftl";
    String ELEM_TEMPLATE_APPLICATION_TEST = "/templates/frontend/elem/ApplicationTests.java.ftl";
    String ELEM_TEMPLATE_SERVLET_INITIALIZER = "/templates/frontend/elem/ServletInitializer.java.ftl";
    String ELEM_TEMPLATE_VIEW_CONTROLLER = "/templates/frontend/elem/ViewController.java.ftl";
    String ELEM_TEMPLATE_INCLUDE_HTML = "/templates/frontend/elem/include.html.ftl";
    String ELEM_TEMPLATE_HTML = "/templates/frontend/elem/template.html.ftl";
    String ELEM_TEMPLATE_JS = "/templates/frontend/elem/template.js.ftl";


}
